OrderStatus_Unknown = 0
OrderStatus_New = 1                   # 已报
OrderStatus_PartiallyFilled = 2       # 部成
OrderStatus_Filled = 3                # 已成
OrderStatus_Canceled = 5              # 已撤
OrderStatus_PendingCancel = 6         # 待撤
OrderStatus_Rejected = 8              # 已拒绝
OrderStatus_Suspended = 9             # 挂起 （无效）
OrderStatus_PendingNew = 10           # 待报
OrderStatus_Expired = 12              # 已过期

OrderSide_Unknown = 0
OrderSide_Buy = 1             # 买入
OrderSide_Sell = 2            # 卖出

OrderType_Unknown = 0
OrderType_Limit = 1            # 限价委托
OrderType_Market = 2           # 市价委托
OrderType_Stop = 3             # 止损止盈委托  （还不支持）

PositionEffect_Unknown = 0
PositionEffect_Open = 1                  # 开仓
PositionEffect_Close = 2                 # 平仓, 具体语义取决于对应的交易所
PositionEffect_CloseToday = 3            # 平今仓
PositionEffect_CloseYesterday = 4        # 平昨仓

PositionSide_Unknown = 0
PositionSide_Long = 1            # 多方向
PositionSide_Short = 2           # 空方向

MODE_LIVE = 1  # 实时
MODE_BACKTEST = 2  # 回测
